package org.screenshare.rtmp.android.nginx;

import android.app.Application;

import org.screenshare.rtmp.android.nginx.utils.NginxConfigureTask;
import org.screenshare.rtmp.nginx.Nginx;

import java.io.File;

/**
 * Desc: Nginx Application
 *
 * @author Zach
 * created at 2022/9/15 17:39
 */
public class NginxApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        File sdcard = Nginx.create().getPrefix();
        (new NginxConfigureTask(this, sdcard)).execute(
                NginxConfigureTask.NGINX_CONF_FILENAME,
                NginxConfigureTask.NGINX_MIMETYPES_FILENAME);
    }

}
